<script>
	export default {
		onLaunch: function() {
			this.$i18n.locale = uni.getStorageSync('lang') ? 'en' : 'cn';
			uni.setTabBarItem({
				index: 0,
				text: this.$t('tabbar.a'),
				iconPath: "/static/tabbar/shouyh.png",
				selectedIconPath: "/static/tabbar/shouyl.png",
			})

			uni.setTabBarItem({
				index: 1,
				text: this.$t('tabbar.b'),
				iconPath: "/static/tabbar/clvhs.png",
				selectedIconPath: "/static/tabbar/clls.png",
			})

			uni.setTabBarItem({
				index: 2,
				text: this.$t('tabbar.c'),
				iconPath: "/static/tabbar/hangqhse.png",
				selectedIconPath: "/static/tabbar/hangqls.png",
			})
			uni.setTabBarItem({
				index: 3,
				text: this.$t('tabbar.d'),
				iconPath: "/static/tabbar/sy_wddb.png",
				selectedIconPath: "/static/tabbar/sy_wddblan.png",
			})
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	@import "uview-ui/index.scss";
	/*每个页面公共css */
</style>
